Adjust skb->truesize appropriately in netback driver.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 5 May 2006 12:49:49 +0000 (13:49 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 5 May 2006 12:49:49 +0000 (13:49 +0100)
commitb7f7d7a8ec409b8051ed36f63bbe05187198543b
treecc4fa62d703d8d18226a9b54aa9c28a4e31b0fe4
parent3b5459241bc904f910f34f19a8e33627d7a255e4
Adjust skb->truesize appropriately in netback driver.

When you generate non-linear skb's as netback does, it is up to you
to ensure that truesize reflects the size of paged part of the skb.
Otherwise socket memory accounting in Linux falls apart.

Thanks to the new check that David Miller added to TCP we were able
to catch this bug.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/netback/netback.c